<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>反馈详情</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f7fa;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 800px;
            margin-top: 50px;
        }

        h1 {
            font-size: 28px;
            color: #2c3e50;
            text-align: center;
            margin-bottom: 30px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .feedback-detail {
            margin-bottom: 20px;
        }

        .feedback-detail p {
            font-size: 16px;
            color: #555;
            line-height: 1.6;
        }

        .feedback-detail strong {
            color: #3498db;
        }

        .form-group {
            margin-top: 30px;
        }

        .form-group label {
            display: block;
            font-size: 16px;
            color: #555;
            margin-bottom: 8px;
        }

        .form-group textarea {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 5px;
            background-color: #f9f9f9;
            resize: vertical;
            min-height: 100px;
            transition: border-color 0.3s ease;
        }

        .form-group textarea:focus {
            border-color: #3498db;
            outline: none;
        }

        button {
            padding: 12px 25px;
            font-size: 18px;
            color: white;
            background-color: #3498db;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            width: 100%;
        }

        button:hover {
            background-color: #2980b9;
            transform: translateY(-3px);
        }

        button:active {
            background-color: #1abc9c;
            transform: translateY(0);
        }

        .back-btn {
            margin-top: 20px;
            text-align: center;
        }

        .back-btn button {
            width: auto;
            padding: 10px 20px;
            font-size: 16px;
            background-color: #f39c12;
            border: none;
            border-radius: 5px;
            color: white;
            cursor: pointer;
        }

        .back-btn button:hover {
            background-color: #e67e22;
        }

        .back-btn button:active {
            background-color: #d35400;
        }
    </style>
</head>
<body>

<div class="container">
    <h1>反馈详情</h1>

    <div class="feedback-detail">
        <p><strong>反馈标题:</strong> ${feedback.title}</p>
        <p><strong>用户昵称:</strong> ${feedback.nickname}</p>
        <p><strong>提交时间:</strong> ${feedback.submitDate}</p>
        <p><strong>反馈描述:</strong> ${feedback.description}</p>
    </div>

    <div class="form-group">
        <strong>回复内容:</strong>
        <form method="POST" action="/admin/Feedbacks/reply">
            <textarea name="replyContent" rows="4" placeholder="请输入回复内容..." required></textarea><br>
            <input type="hidden" name="feedbackId" value="${feedback.feedbackId}">
            <button type="submit">发送回复</button>
        </form>
    </div>

    <div class="back-btn">
        <a href="/admin/FeedbacksManagement">
            <button>返回</button>
        </a>
    </div>
</div>

</body>
</html>
